package org.yjy.sqlresources.controller.resources;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yjy.pvd.pojo.resources.PublicBasics;
import org.yjy.sqlresources.service.resources.PublicBasicsService;

import java.util.List;

@RequestMapping("/PublicBasicsController")
@CrossOrigin
@RestController
public class PublicBasicsController {
    @Autowired
    private PublicBasicsService publicBasicsService;

    @GetMapping("/findAll")
    public List<PublicBasics> testFindAll(){
        List<PublicBasics> publicBasicss = publicBasicsService.findAll();
        return publicBasicss;
    }

}
